package com.durian.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户角色(普通用户：1；管理员：0)
 *
 * @author Durian
 * @date 2023/11/26
 */
@Getter
@AllArgsConstructor
public enum UserRoleSign implements IEnum<Integer> {
    IsAdmin(0, "管理员"),
    IsCommon(1, "普通用户");


    @EnumValue
    private final Integer value;
    @JsonValue
    private final String name;
}
